package com.ruoyi.cs.event.customeroffer.mapper;

import com.ruoyi.cs.event.customeroffer.domain.CustomerOffer;
import com.ruoyi.cs.event.customeroffer.domain.CustomerOfferList;

import java.util.List;

/**
 * 客户报价
 * 数据层
 * @author Drj 2021/6/28
 */
public interface CustomerOfferMapper {
    /**
     * 客户报价查询
     * @param customerOffer 查询条件
     * @return
     */
    public List<CustomerOffer> selectCustomerOfferList(CustomerOffer customerOffer);

    /**
     * 客户报价根据编号查询
     * @param customerQuotaId
     * @return
     */
    public CustomerOffer selectCustomerOfferById(String customerQuotaId);

    /**
     * 获取最新的一条在产成本费用分摊编号
     * @return
     */
    String getCustomerQuotaId();

    /**
     * 新增客户报价
     * @param customerOffer
     * @return
     */
    public int insertCustomerOffer(CustomerOffer customerOffer);

    /**
     * 更新客户报价
     * @param customerOffer
     * @return
     */
    public int updateCustomerOffer(CustomerOffer customerOffer);

    /**
     * 删除客户报价
     * 仅修改删除标志
     * @param customerOffer
     * @return
     */
    public int updateCustomerOfferDeleteFlag(CustomerOffer customerOffer);

//    产品报价详细

    /**
     * 查询客户报价对应的所有产品报价详细
     * @param customerQuotaId
     * @return
     */
    public List<CustomerOfferList>selectCustomerOfferListListById(String customerQuotaId);

    /**
     *  查询客户报价对应的指定产品报价详细
     * @param customerOfferList
     * @return
     */
    public CustomerOfferList selectCustomerOfferListById(CustomerOfferList customerOfferList);

    /**
     * 客户报价详细新增
     * @param customerOfferList
     * @return
     */
    public int insertCustomerOfferList(CustomerOfferList customerOfferList);

    /**
     * 更新客户报价详细
     * @param customerOfferList
     * @return
     */
    public int updateCustomerOfferList(CustomerOfferList customerOfferList);

    /**
     * 删除客户报价详细
     * @param customerOfferList
     * @return
     */
    public int deleteCustomerOfferListById(CustomerOfferList customerOfferList);


}
